import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router);

export default new Router({
    mode: 'hash', // Demo is living in GitHub.io, so required!
    linkActiveClass: 'is-active',
    scrollBehavior: () => ({y: 0}),
    routes: [
        {
            name: 'Home',
            path: '/',
            component: require('modules/Home')
        },
        {
            name: 'Backpack',
            path: '/backpack',
            component: require('modules/backpack/Backpack')
        },
        {
            name: '鸡兔同笼',
            path: '/cage',
            component: require('modules/cage/ChickenCage')
        },
        {
            name: '四则运算',
            path: '/arithmetic',
            component: require('modules/arithmetic/Arithmetic')
        },
        {
            name:'矩阵',
            path:'/matrix',
            component:require('modules/matrix/Matrix.vue')
        },
        {
            name:'小熊分苹果',
            path:'/xiong',
            component:require('modules/xiong/Xiong.vue')
        }
        // {
        //     name: 'CustomerEditor',
        //     path: '/crm/customer-editor/:id',
        //     component: require('views/crm/CustomerEditor')
        // },
        // {
        //
        //     path: '*',
        //     redirect: '/'
        // }
    ]
})

